package com.hehua.BuilderTwo;

/**
 * 角色创建者,这里我们省略指挥者,会让代码清晰,但是或增加角色建造者的负荷,违背了单一职责
 */
public abstract class ActorBuild {
    protected Actor actor = new Actor();

    public abstract void buildName();
    public abstract void buildAge();

    public  Actor construct(){
        this.buildAge();
        this.buildName();
        return actor;
    }
}
